//
// Created by Administrator on 2022/3/9.
//

#include "ts_sched_trans.h"

#define VALID_INSTANCE(instance) if (instance == NULL) return TS_USER_BUG;

static TsStatus Sched(TsInstance instance) {

}

TsStatus TS_Init(TsInstance instance, TsSched* trans, void* userData)
{
    VALID_INSTANCE(instance);
    instance->trans = trans;
    instance->userData = userData;

    instance->stack = NULL; // todo malloc or user input
    return TS_SUCCESS;
}

TsStatus Start(TsInstance instance)
{
    VALID_INSTANCE(instance);

    TS_SCHED_SEQUENTIAL_Start(instance);
}


